package com.loan.system.service;

import com.alibaba.fastjson.JSONObject;
import com.loan.system.domain.ApplyEntity;
import com.loan.system.domain.PayConfigEntity;
import com.loan.system.domain.UserVaEntity;
import com.loan.system.domain.req.AccountEntity;

import java.util.List;

/**
 * @author shiguang on 2022/9/22 15:53
 */
public interface UserVaService {

    void saveUserVa(String data, ApplyEntity applyEntity, PayConfigEntity payConfigEntity);

    UserVaEntity selectByNoAndName(String accountNo, String accountName);

    void saveUserVaHqpay(JSONObject data, ApplyEntity applyEntity, PayConfigEntity payConfigEntity);

    UserVaEntity selectByCardId(String cardId);

    UserVaEntity selectByBank(String account);

    UserVaEntity getUserVaByApplyId(Long applyId);

    void saveUserVaHqpayNew(AccountEntity data, ApplyEntity applyEntity, PayConfigEntity payConfigEntity, String batchId);

    List<UserVaEntity> selectListByType(String type);
}
